<?php

use App\Http\Controllers\Api\ActivityController;
use App\Http\Controllers\Api\BannerController;
use App\Http\Controllers\Api\OrderController;
use App\Http\Controllers\Villager\UserController;
use App\Http\Controllers\VillagerCommittee\VillagerCommitteeController;
use Illuminate\Support\Facades\Route;

//村委会审核.
Route::post('state/add', [VillagerCommitteeController::class, 'stateAdd']);
//审核页个人信息
Route::get('get/user/info', [UserController::class, 'getUserInfo']);
//绑定志愿者和社区
Route::post('community/add', [UserController::class, 'communityAdd']);
//banner列表
Route::get('banner/list', [BannerController::class, 'getBannerList']);
//村民列表
Route::get('user/list', [VillagerCommitteeController::class, 'userList']);
//子账号列表
Route::get('account/list', [VillagerCommitteeController::class, 'accountList']);
//子账号详情
Route::get('account/detail', [VillagerCommitteeController::class, 'accountDetail']);
//删除
Route::get('account/delete', [VillagerCommitteeController::class, 'accountDelete']);
//添加子账号
Route::post('account/add', [VillagerCommitteeController::class, 'accountAdd']);
//活动列表
Route::get('activity/list', [ActivityController::class, 'getActivityList']);
//活动报名列表
Route::get('activity/application', [ActivityController::class, 'getActivityApplicationList']);
//活动详情
Route::get('activity', [ActivityController::class, 'getActivity']);
//发布活动
Route::post('activity/add', [ActivityController::class, 'activityAdd']);
//确认活动
Route::post('activity/confirm', [ActivityController::class, 'activityConfirm']);
//我的-订单列表
Route::get('my/order/list', [OrderController::class, 'getCommunityList']);
// 异常上报
Route::post('abnormal/add', [\App\Http\Controllers\Driver\UserController::class, 'abnormalAdd']);
// 查看预警列表
Route::get('waring/list', [VillagerCommitteeController::class, 'waringOrderList']);
// 查看预警详情
Route::get('waring/detail', [VillagerCommitteeController::class, 'waringOrderDetail']);
// 志愿者分配列表
Route::get('volunteers/list', [VillagerCommitteeController::class,'volunteersList']);
// 志愿者分配
Route::post('volunteers/add', [VillagerCommitteeController::class,'volunteersAdd']);
// 志愿者数据统计
Route::get('volunteers/statistics', [VillagerCommitteeController::class,'volunteersStatistics']);

